home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / gap.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  3KB  |  85 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Yevgen Muntyan <muntyan@tamu.edu>
  5.  Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="gap" _name="GAP" version="2.0" _section="Scientific">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-gap</property>
  26.     <property name="globs">*.g;*.gd;*.gi;*.gap</property>
  27.     <property name="line-comment-start">#</property>
  28.   </metadata>
  29.  
  30.   <styles>
  31.     <style id="comment" _name="Comment" map-to="def:comment"/>
  32.     <style id="character" _name="Character" map-to="def:string"/>
  33.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  34.     <style id="function" _name="Function" map-to="def:function"/>
  35.     <style id="decimal" _name="Decimal" map-to="def:decimal"/>
  36.   </styles>
  37.  
  38.   <definitions>
  39.     <context id="character" style-ref="character">
  40.       <match>\'(\\[trnb\\\'\"]|[^\\])\'</match>
  41.     </context>
  42.     <context id="keyword" style-ref="keyword">
  43.       <keyword>and</keyword>
  44.       <keyword>break</keyword>
  45.       <keyword>continue</keyword>
  46.       <keyword>do</keyword>
  47.       <keyword>elif</keyword>
  48.       <keyword>else</keyword>
  49.       <keyword>end</keyword>
  50.       <keyword>fail</keyword>
  51.       <keyword>false</keyword>
  52.       <keyword>fi</keyword>
  53.       <keyword>for</keyword>
  54.       <keyword>function</keyword>
  55.       <keyword>if</keyword>
  56.       <keyword>in</keyword>
  57.       <keyword>infinity</keyword>
  58.       <keyword>local</keyword>
  59.       <keyword>not</keyword>
  60.       <keyword>od</keyword>
  61.       <keyword>or</keyword>
  62.       <keyword>rec</keyword>
  63.       <keyword>repeat</keyword>
  64.       <keyword>return</keyword>
  65.       <keyword>then</keyword>
  66.       <keyword>true</keyword>
  67.       <keyword>until</keyword>
  68.       <keyword>while</keyword>
  69.     </context>
  70.     <context id="decimal" style-ref="decimal">
  71.       <match>\b[0-9]+\b</match>
  72.     </context>
  73.  
  74.     <context id="gap">
  75.       <include>
  76.         <context ref="def:shell-like-comment"/>
  77.         <context ref="def:string"/>
  78.         <context ref="character"/>
  79.         <context ref="keyword"/>
  80.         <context ref="decimal"/>
  81.       </include>
  82.     </context>
  83.   </definitions>
  84. </language>
  85.